#demo
def toSum(nums,target):
    n = len(nums)
    for i in range(n):
        for j in range(i+1,n):
            if nums[i]+nums[j] == target:
                return [i,j]
    return []

a = (1,2,3,4,5)
print("toSum:",toSum(a,6))

